home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20020314-20021006 / 000123_fdc@columbia.edu_Wed Jun 5 10:50:23 EDT 2002.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  50 lines

  1. Article: 13420 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
  3. From: fdc@columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: kermit file
  6. Date: 5 Jun 2002 10:50:19 -0400
  7. Organization: Columbia University
  8. Lines: 33
  9. Message-ID: <adl8fb$lak$1@watsol.cc.columbia.edu>
  10. References: <fd9f03a6.0206030803.6475f94c@posting.google.com> <fd9f03a6.0206032329.ef1732a@posting.google.com> <adihlk$lvh$1@watsol.cc.columbia.edu> <fd9f03a6.0206050353.2dea961c@posting.google.com>
  11. NNTP-Posting-Host: watsol.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1023288620 26927 128.59.39.139 (5 Jun 2002 14:50:20 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 5 Jun 2002 14:50:20 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13420
  16.  
  17. In article <fd9f03a6.0206050353.2dea961c@posting.google.com>,
  18. david <david.neau@dial.oleane.com> wrote:
  19. : ...
  20. : > Perhaps if you state what you are trying to accomplish, we can suggest a
  21. : > method.
  22. :     I just want to use kermit to make several RTC connections to cisco
  23. : routeur and past with a perl script some command and find the answer
  24. : in the kermit.log file.
  25. :
  26. :     So i just want that kermit script ( the connection ) run at the same
  27. : time that my perl script..
  28. :
  29. Perhaps you are approaching the problem in the wrong way.  You don't have
  30. to script Kermit with Perl.  You can script Kermit with Kermit.  That's what
  31. it is designed for; it is not designed to be scripted by an external scripting
  32. agent like Perl, Python, etc.
  33.  
  34. You can find dozens of examples of how to do this in the C-Kermit script
  35. library:
  36.  
  37.   http://www.columbia.edu/kermit/ckscripts.html
  38.  
  39. I still don't know exactly what you want to do, but I think it is: make a
  40. connection to a router, give some commands, and log the results to a file.
  41. This is very simple.  You can use Kermit to make any kind of connection to
  42. the router: direct serial, dialed, Telnet, secure Telnet, SSH, etc.  Then,
  43. once connected, you tell Kermit to "log session xxx" where xxx is the name
  44. of the logfile you want to create.  Then you use INPUT, OUTPUT, and IF
  45. SUCCESS commands to carry on the dialog.  See the examples in the script
  46. library.  Or read the manual.  Have your angry boss buy you a copy.
  47.  
  48. - Frank
  49.